package com.bookseek.xreader.params;

public class PageParams {
    private Integer page;
    private Integer pageSize;


    public Integer getPage() {
        return page != null && page > 0 ? page : 1;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize != null && pageSize > 0 ? pageSize : 20;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
